package cn.v5cn.springcloud.web1.controller;

import cn.v5cn.springcloud.web1.entity.Users;
import cn.v5cn.springcloud.web1.mapper.UsersMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class Web1Controller {


    @Autowired
    private UsersMapper usersMapper;

    @GetMapping("/index")
    public Object index() {
        return "这里是Web1";
    }

    @GetMapping("/userInfo")
    public Object getUsers() {
        return usersMapper.selectList(null);
    }
}
